import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';
import 'package:flutter_taotaoshipin/model/drama_play_rand_entity.dart';

DramaPlayRandEntity $DramaPlayRandEntityFromJson(Map<String, dynamic> json) {
  final DramaPlayRandEntity dramaPlayRandEntity = DramaPlayRandEntity();
  final int? dramaId = jsonConvert.convert<int>(json['drama_id']);
  if (dramaId != null) {
    dramaPlayRandEntity.dramaId = dramaId;
  }
  return dramaPlayRandEntity;
}

Map<String, dynamic> $DramaPlayRandEntityToJson(DramaPlayRandEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['drama_id'] = entity.dramaId;
  return data;
}

extension DramaPlayRandEntityExtension on DramaPlayRandEntity {
  DramaPlayRandEntity copyWith({
    int? dramaId,
  }) {
    return DramaPlayRandEntity()
      ..dramaId = dramaId ?? this.dramaId;
  }
}